permutations and combinations for BBA